﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using WPFStudy.View;

namespace WPFStudy
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void btnLayoutBase_Click(object sender, RoutedEventArgs e)
        {
            new LayoutBaseWindow().ShowDialog();
        }

        private void btnStyleBase_Click(object sender, RoutedEventArgs e)
        {
            new StyleBaseWindow().ShowDialog();
        }

        private void btnControlTemplate_Click(object sender, RoutedEventArgs e)
        {
            new ControlTemplateWindow().ShowDialog();
        }

        private void btnDataTemplate_Click(object sender, RoutedEventArgs e)
        {
            new DataTemplateWindow().ShowDialog();
        }

        private void btnBinding_Click(object sender, RoutedEventArgs e)
        {
            new BindingWindow().ShowDialog();
        }

        private void btnCommnad_Click(object sender, RoutedEventArgs e)
        {
            new CommandWindow().ShowDialog();
        }

        private void btnNotifyPropertyChanged_Click(object sender, RoutedEventArgs e)
        {
            new NotifyPropertyChangedWindow().ShowDialog();
        }

        private void btnMvvmLight_Click(object sender, RoutedEventArgs e)
        {
            new MvvmLightWindow().ShowDialog();
        }

        private void btnMicrosoftToolkitMVVM_Click(object sender, RoutedEventArgs e)
        {
            new MicrosoftToolkitMVVMWindow().ShowDialog();
        }

        private void btnResourceBase_Click(object sender, RoutedEventArgs e)
        {
            new ResourceBaseWindow().ShowDialog();
        }

        private void btnAnimationBase_Click(object sender, RoutedEventArgs e)
        {
            new AnimationBaseWindow().ShowDialog();
        }

        private void btnPrismMain_Click(object sender, RoutedEventArgs e)
        {
            new WPFStudy.PrismStudy.MainWindow().ShowDialog();
        }

        private void btnDataGridToDataTable_Click(object sender, RoutedEventArgs e)
        {
            new DataGridToDataTableWindow()?.ShowDialog();
        }
    }
}
